﻿-- =============================================
-- Author:		<Author,XFL>
-- Create date: <Create Date,20111226>
-- Description:	<Description,通过工资表中的id,取出对应的username>
-- =============================================
CREATE PROCEDURE [dbo].[proc_Wage_GetUsername]
	-- Add the parameters for the stored procedure here
		@Id_str nvarchar(MAX)
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering ;WITH SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	EXEC('Select username,CompanyId,FaFangMonth from  Employee_Wage Where Id in ('+@Id_str+')')
END
return
